import request from "@/utils/request";

// 查询商品区域列表
export function productAreaList(query) {
  return request({
    url: "/productArea/page",
    method: "get",
    params: query,
  });
}

// 新增商品区域
export function insertArea(data) {
  return request({
    url: "/productArea/insert",
    method: "post",
    data: data,
  });
}

// 查询区域详细
export function detailArea(id) {
  return request({
    url: "/productArea/detail/" + id,
    method: "get",
  });
}

// 修改区域
export function modifyArea(data) {
  return request({
    url: "/productArea/modify",
    method: "put",
    data: data,
  });
}

// 删除区域
export function delArea(id) {
  return request({
    url: "/productArea/del/" + id,
    method: "delete",
  });
}
